package com.ufox;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;

//1 pom.xml 导入依赖

//2 配置文件  yml

//3 生成代码

//4 配置分页

//5 启动类加注解
//111111111111111111111111
//9999999999999999999999999999999999999999999999
//66666666666666666666666666666666666666666666666
//888888888888888888
@SpringBootApplication
@MapperScan("com.ufox.mapper")
public class Boot01Application {

    public static void main(String[] args) {
        SpringApplication.run(Boot01Application.class, args);
    }

    /**
     * 分页插件
     * @return 分页插件的实例
     */
    @Bean
    public PaginationInterceptor paginationInterceptor() {
        return new PaginationInterceptor();
    }

}
